package com.hava.film.timeline.xmeml.v5.entity;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;

import java.util.List;
import java.util.ArrayList;

@JacksonXmlRootElement(localName = "file")
public class File {

    //作为node的attr
    @JacksonXmlProperty(isAttribute = true)
    public String id;

    //一个或者多个元素
    @JacksonXmlProperty(localName = "name")
    @JacksonXmlElementWrapper(useWrapping = false)
    public List<String> name = new ArrayList<String>();

    //一个或者多个元素
    @JacksonXmlProperty(localName = "rate")
    @JacksonXmlElementWrapper(useWrapping = false)
    public List<Rate> rate = new ArrayList<Rate>();

    //一个或者多个元素
    @JacksonXmlProperty(localName = "duration")
    @JacksonXmlElementWrapper(useWrapping = false)
    public List<String> duration = new ArrayList<String>();

    //一个或者多个元素
    @JacksonXmlProperty(localName = "media")
    @JacksonXmlElementWrapper(useWrapping = false)
    public List<Media> media = new ArrayList<Media>();

    //一个或者多个元素
    @JacksonXmlProperty(localName = "timecode")
    @JacksonXmlElementWrapper(useWrapping = false)
    public List<Timecode> timecode = new ArrayList<Timecode>();

    //一个或者多个元素
    @JacksonXmlProperty(localName = "pathurl")
    @JacksonXmlElementWrapper(useWrapping = false)
    public List<String> pathurl = new ArrayList<String>();

    //一个或者多个元素
    @JacksonXmlProperty(localName = "width")
    @JacksonXmlElementWrapper(useWrapping = false)
    public List<String> width = new ArrayList<String>();

    //一个或者多个元素
    @JacksonXmlProperty(localName = "height")
    @JacksonXmlElementWrapper(useWrapping = false)
    public List<String> height = new ArrayList<String>();

    //一个或者多个元素
    @JacksonXmlProperty(localName = "mediaSource")
    @JacksonXmlElementWrapper(useWrapping = false)
    public List<String> mediaSource = new ArrayList<String>();

    //一个或者多个元素
    @JacksonXmlProperty(localName = "metadata")
    @JacksonXmlElementWrapper(useWrapping = false)
    public List<Metadata> metadata = new ArrayList<Metadata>();

}
